﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OnTheWay.Functions;
using System.Windows.Media.Imaging;

namespace PcBackgroundMgr
{
    public enum FunctionEnum
    {
        展示管理, 人物管理, 活动管理, 企业联盟, 视频管理
    }

    public class FunctionFactory
    {
        private static Function[] _Functions = new Function[]{
            new Function(FunctionEnum.展示管理.ToString(),"PcBackgroundMgr.Functions.ShowListCtrl",new BitmapImage(new Uri("pack://application:,,,/Images/Functions/picture.png"))),
            new Function(FunctionEnum.人物管理.ToString(),"PcBackgroundMgr.Functions.FigureListCtrl",new BitmapImage(new Uri("pack://application:,,,/Images/Functions/picture.png"))),
            new Function(FunctionEnum.活动管理.ToString(),"PcBackgroundMgr.Functions.MarketListCtrl",new BitmapImage(new Uri("pack://application:,,,/Images/Functions/picture.png"))),
            new Function(FunctionEnum.企业联盟.ToString(),"PcBackgroundMgr.Functions.EnterpriseListCtrl",new BitmapImage(new Uri("pack://application:,,,/Images/Functions/picture.png"))),
            new Function(FunctionEnum.视频管理.ToString(),"PcBackgroundMgr.Functions.VedioListCtrl",new BitmapImage(new Uri("pack://application:,,,/Images/Functions/picture.png"))),
            new Function("会员管理","PcBackgroundMgr.Functions.UserListCtrl",new BitmapImage(new Uri("pack://application:,,,/Images/Functions/picture.png"))),
        };

        private static Function[] _SuperFunctions = new Function[]{
            new Function(FunctionEnum.展示管理.ToString(),"PcBackgroundMgr.Functions.ShowListCtrl",new BitmapImage(new Uri("pack://application:,,,/Images/Functions/picture.png"))),
            new Function(FunctionEnum.人物管理.ToString(),"PcBackgroundMgr.Functions.FigureListCtrl",new BitmapImage(new Uri("pack://application:,,,/Images/Functions/picture.png"))),
            new Function(FunctionEnum.活动管理.ToString(),"PcBackgroundMgr.Functions.MarketListCtrl",new BitmapImage(new Uri("pack://application:,,,/Images/Functions/picture.png"))),
            new Function(FunctionEnum.企业联盟.ToString(),"PcBackgroundMgr.Functions.EnterpriseListCtrl",new BitmapImage(new Uri("pack://application:,,,/Images/Functions/picture.png"))),
            new Function(FunctionEnum.视频管理.ToString(),"PcBackgroundMgr.Functions.VedioListCtrl",new BitmapImage(new Uri("pack://application:,,,/Images/Functions/picture.png"))),
            new Function("会员管理","PcBackgroundMgr.Functions.UserListCtrl",new BitmapImage(new Uri("pack://application:,,,/Images/Functions/picture.png"))),
            new Function("类型管理","PcBackgroundMgr.Functions.ExhibitTypeListCtrl",new BitmapImage(new Uri("pack://application:,,,/Images/Functions/picture.png"))),
            new Function("用户管理","PcBackgroundMgr.Functions.SysAdminListCtrl",new BitmapImage(new Uri("pack://application:,,,/Images/Functions/picture.png"))),
        };

        public static IList<Function> Functions { get { return _Functions.ToList(); } }
        public static IList<Function> SuperFunctions { get { return _SuperFunctions.ToList(); } }
    }
}
